home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.000 / linuxcon / linuxconf-1.6 / dialog / internal.h < prev    next >
C/C++ Source or Header  |  1996-07-22  |  1KB  |  56 lines

  1. #pragma interface
  2. #ifndef INTERNAL_H
  3. #define INTERNAL_H
  4.  
  5. #ifndef MISC_H
  6.     #include "../misc/misc.h"
  7. #endif
  8.  
  9. class BUTTONS_INFO {
  10.     int but_options;    // Set of MENUBUT_xxxx
  11.     int nb;
  12.     const char *tb[10];
  13.     MENU_STATUS tbret[10];    // Return code associated with a button
  14.     int y;            /* Coordinate of the line where the buttons are drawn */
  15.     int tbx[10];    /* Horizontal coordinate of each buttons */
  16.     SSTRING helpfile;    /* File to show when help is selected */
  17.     /*~PROTOBEG~ BUTTONS_INFO */
  18. public:
  19.     BUTTONS_INFO (void);
  20.     MENU_STATUS dokey (WINDOW *dialog,
  21.          int key,
  22.          int &selected,
  23.          int other_focus);
  24.     void draw (WINDOW *dialog, int button);
  25.     int evalwidth (void);
  26. private:
  27.     void help (WINDOW *win);
  28. public:
  29.     void html_draw (void);
  30.     void set (int _but_options, const char *_helpfile);
  31.     void setcursor (WINDOW *dialog, int button);
  32.     void setup (int _y, int width);
  33.     /*~PROTOEND~ BUTTONS_INFO */
  34. };
  35.  
  36. class HTML_VARVAL{
  37.     SSTRINGS vars;
  38.     SSTRINGS vals;
  39.     SSTRING context;
  40.     /*~PROTOBEG~ HTML_VARVAL */
  41. public:
  42.     HTML_VARVAL (const char *key);
  43.     void add (const char *var, const char *val);
  44.     int exist (const char *var);
  45.     const char *getcontext (void);
  46.     int getnb (void);
  47.     const char *getval (const char *var);
  48.     const char *getval (int no);
  49.     const char *getvar (int no);
  50.     /*~PROTOEND~ HTML_VARVAL */
  51. };
  52.  
  53.  
  54. #endif
  55.  
  56.